<?php echo $this->fetch('header.html'); ?>

<style>
    .page_job{position: relative;padding:10px;}
    .page_job .joblist dl {margin-top: 10px;padding: 10px 5px 10px;border: 1px solid #ddd;background:#fff;}
    .page_job .joblist dt{padding: 0 10px;font-weight: bold;font-size: 16px;line-height: 1.2;}
    .page_job .joblist dd{margin-top: 0px;}
    .page_job .joblist dd .mis{padding: 5px 10px;border-bottom: 1px solid #ddd;font-size: 12px;}
    .page_job .joblist dd .mis span{margin-right: 15px;color: #999;}
    .page_job .joblist dd .dtail{padding: 5px 10px 0;border-top: 1px solid #ddd;}
    .page_job .joblist dd .dtail span{margin-right: 15px;}
    .page_job .joblist dd .dtail a{color: #1c57c4;}
</style>
<section class="page_job">
    <?php if ($this->_var['jobs']): ?>
    <div class="joblist">
        <?php $_from = $this->_var['jobs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'job');if (count($_from)):
    foreach ($_from AS $this->_var['job']):
?>
        <dl>
            <dt><a href="<?php echo url('app=job&act=view&id=' . $this->_var['job']['job_id']. ''); ?>" title="<?php echo htmlspecialchars($this->_var['job']['position']); ?>"><?php echo htmlspecialchars($this->_var['job']['position']); ?></a></dt>
            <dd class="list top">
                <div class="mis"><span>发布日期：：<?php echo local_date("Y-m-d",$this->_var['job']['update_time']); ?></span><span>工作地点：：<?php echo ($this->_var['job']['place'] == '') ? '待定' : $this->_var['job']['place']; ?></span><span>招聘人数：：<?php echo ($this->_var['job']['count'] == '') ? '不限' : $this->_var['job']['count']; ?></span></div>
                <div class="dtail">
                    <span><a href="<?php echo url('app=job_apply&act=add&id=' . $this->_var['job']['job_id']. ''); ?>" title="在线应聘" target="_self">在线应聘</a></span>
                    <span><a href="<?php echo url('app=job&act=view&id=' . $this->_var['job']['job_id']. ''); ?>" title="查看详细" target="_self">查看详细</a></span>
                </div>
            </dd>
        </dl>
        <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
        <?php echo $this->fetch('page.bottom.html'); ?>
    </div>
    <?php else: ?>
    <div class="null">
        <p>没有符合条件的记录~</p>
    </div>
    <?php endif; ?>
</section>


<?php echo $this->fetch('footer.html'); ?>